//==============================================================================
// Farm_anim.txt
//==============================================================================

//==============================================================================
define GoldSparkle
{
	set hotspot
	{
		version
		{
			VisualParticle sfx c pixiu glow old
			TimeOffset 2.00
		}
	}
}

//==============================================================================
define Well
{
	SetSelector
	{
		VariationLogic
		set hotspot
		{
			version
			{
				Visual building beta e misc well
			}
		}
		set hotspot
		{
			version
			{
				Visual building Beta e misc well v2
			}
		}
	}
}

//==============================================================================
define Snow
{
	set hotspot
	{
		version
		{
			VisualParticle sfx n snow
		}
	}
}

//==============================================================================
define ChannelsGlow
{
	set hotspot
	{
		version
		{
			Visualparticle SFX A Blue Glow Farm
		}
	}
}

//==============================================================================
define plowed
{
	SetSelector
	{
		Techlogic none/Plow
		set hotspot
		{
			version
			{
				VisualNone
			}
		}
		set hotspot
		{
			version
			{
				Visual World A Farm plowed
			}
		}
	}
}
	
//==============================================================================
define irrigation
{
	SetSelector
	{
		Techlogic none/irrigation
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone
				}
			}
		}
		SetSelector
		{
			Techlogic none/Flood of the Nile/Channels
			set hotspot
			{
				version
				{
					visual world a farm irrigation water
				}
			}
			set hotspot
			{
				version
				{
					visual world a farm irrigation water
					replacetexture world a waterfall blue water/world a farm irrigation nile
				}
			}
			set hotspot
			{
				version
				{
					visual world a farm channels water
				}
			}
		}
	}
}

//==============================================================================
define FloodControl
{
	SetSelector
	{
		Techlogic none/Flood Control
		set hotspot
		{
			version
			{
				VisualNone
			}
		}
		set hotspot
		{
			version
			{
				Visual World A Farm flood control Levees
			}
		}
	}
}

//==============================================================================
define plants
{
	SetSelector
	{
		CultureLogic Greek/Egyptian/Norse/Atlantean/Chinese
		SetSelector
		{
			Techlogic none/Golden Apples
			set hotspot
			{
				version
				{
					Visual World A Farm Grass
				}
			}
			set hotspot
			{
				version
				{
					Visual Special N Farm Winter Harvest
					ReplaceTexture world a berries cultivation/world a berries goldenapples
					connect hotspot GoldSparkle hotspot
				}
			}
		}
		SetSelector
		{
			Techlogic none/Shaduf
			set hotspot
			{
				version
				{
					Visual WheatFarmNew
				}
			}
			set hotspot
			{
				version
				{
					Visual WheatFarmNew
					connect hotspot Well hotspot
				}
			}
		}
		SetSelector
		{
			Techlogic none/Winter Harvest
			set hotspot
			{
				version
				{
					Visual Pumpkin FarmII
				}
			}
			set hotspot
			{
				version
				{
					Visual Special N Farm Winter Harvest
					connect HITPOINTBAR Snow hotspot
				}
			}
		}
		SetSelector
		{
			Techlogic none/Channels
			set hotspot
			{
				version
				{
					Visual Farm CornII
				}
			}
			set hotspot
			{
				version
				{
					Visual Special N Farm Winter Harvest
					ReplaceTexture world a berries/world a berries channels
					connect hotspot ChannelsGlow hotspot
				}
			}
		}
		SetSelector
		{
			Techlogic none/Five Grains
			set hotspot
			{
				version
				{
					Visual FarmNative
				}
			}
			set hotspot
			{
				version
				{
					Visual WheatFarmNew
				//	replacetexture Wheat Low/Wheat Five Grains
				}
			}
		}
	}
}

//==============================================================================
define cat
{
	SetSelector
	{
		VariationLogic
		set hotspot
		{
			version
			{
				Visual special e sacred cat_walka
			}
		}
		set hotspot
		{
			version
			{
				Visual special e sacred cat_walkb
			}
		}
		set hotspot
		{
			version
			{
				Visual special e sacred cat_walkc
			}
		}
		set hotspot
		{
			version
			{
				Visual special e sacred cat_walkd
			}
		}
	}
}

//==============================================================================
define SacredCat
{
	SetSelector
	{
		Techlogic none/Sacred Cats
		set hotspot
		{
			version
			{
				VisualNone
			}
		}
		set hotspot
		{
			version
			{
				Visual Animal Whale_dummy
				connect attachpoint cat hotspot
			}
		}
	}
}

//==============================================================================
anim Idle
{
	SetSelector
	{
		ConstructionLogic 0 25 50 75
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone World A Farm Cabbage01
					Connect ATTACHPOINT plowed hotspot
					Connect ATTACHPOINT irrigation hotspot
					Connect ATTACHPOINT FloodControl hotspot
					Connect ATTACHPOINT SacredCat hotspot
					Connect ATTACHPOINT plants hotspot
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone World A Farm Cabbage01
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone World A Farm Cabbage02
					Connect ATTACHPOINT plowed hotspot
					Connect ATTACHPOINT SacredCat hotspot
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone World A Farm Cabbage03
					Connect ATTACHPOINT plowed hotspot
					Connect ATTACHPOINT irrigation hotspot
					Connect ATTACHPOINT SacredCat hotspot
				}
			}
		}
		SetSelector
		{
			set hotspot
			{
				version
				{
					VisualNone World A Farm Cabbage04
					Connect ATTACHPOINT plowed hotspot
					Connect ATTACHPOINT irrigation hotspot
					Connect ATTACHPOINT FloodControl hotspot
					Connect ATTACHPOINT SacredCat hotspot
				}
			}
		}
	}	
}
